package com.netease.nie.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.netease.nie.model.ExchangeGoodsInfo;

/**
 * 
 * @author wwbn3695
 * @createDate May 31st,2016
 * 
 */
public interface ExchangeGoodsInfoMapper {

	ExchangeGoodsInfo queryExchangeGoodsInfoById(@Param(value="id") int id);

	List<ExchangeGoodsInfo> queryGoodsInfoListByPrivilegeLevel(@Param(value = "level") int level);
	
	List<ExchangeGoodsInfo> queryGoodsInfoListByColumnInfoId(
			@Param(value = "columnId") int columnId,
			@Param(value = "pageIndex") int pageIndex,
			@Param(value = "pageSize") int pageSize);
	
	List<ExchangeGoodsInfo> queryGoodsInfoListByColumnInfoIds(@Param(value = "ids") List<Integer> columnInfoIds);
	
	int deductGoodsStock(@Param(value="goodsId") int goodsId) throws Exception;
	
	List<ExchangeGoodsInfo> queryExchangeGoodsInfoListByIds(@Param(value="ids") List<Integer> ids);
}
